package user;

/**
 * Creared with IntelliJ IDEA.
 * Description:
 * User:yxd
 * Date:2022-01-05
 * Time:2:12
 */
import operation.*;

import java.util.Scanner;

public class NormalUser extends User{

    public NormalUser(String name) {

        super(name);
        this.iOperation = new IOperation[]{
                new ExitOperation(),
                new FindOperation(),
                new BorrowOperation(),
                new ReturnOperation()

        };
    }
    public int menu(){
        System.out.println("=====普通成员菜单=====");
        System.out.println("Hello " + this.name + "欢迎来到次图书馆");
        System.out.println("1.查找图书");
        System.out.println("2.借阅图书");
        System.out.println("3.归还图书");
        System.out.println("0.退出菜单");
        System.out.println("==================");
        Scanner input  = new Scanner(System.in);
        int choice = input.nextInt();
        return choice;
    }

}

